package com.bdqn.sz.aopjdk;
import net.sf.cglib.proxy.Enhancer;
public class CglibProxyFactory {
    private static CGLIBLogg callback = new CGLIBLogg();
    public static <T> T create(Class<T> targetClass) {
        Enhancer enhancer = new Enhancer();
        enhancer.setCallback(callback);
        enhancer.setSuperclass(targetClass);
        return (T) enhancer.create();
    }
}
